package com.kly.chatter.api.application.controller.im.req;

import lombok.Data;
import javax.validation.constraints.NotNull;

/**
 * @author linqu
 */
@Data
public class OpRequest {

    /**
     * 当前与用户聊天的model码
     */
    @NotNull(message = "modelUserCode cannot be empty")
    private String modelUserCode;
    /**
     * 聊天的用户码
     */
    @NotNull(message = "userCodeFriend cannot be empty")
    private String userCodeFriend;

    /**
     * chatterUserCode
     */
    @NotNull(message = "chatterUserCode cannot be empty")
    private String chatterUserCode;
    /**
     * 会话ID
     */
    @NotNull(message = "targetId cannot be empty")
    private String targetId;
    /**
     * 会话类型：1-单聊会话, 2-群组会话, 3-超级群会话 3-聊天室会话, 4-系统会话
     */
    @NotNull(message = "conversationType cannot be empty")
    private Integer conversationType;
    /**
     * 会话类型：1-save chat 2-Cancel Save chat
     * 3-topping 4-Cancel topping 5-Remove chat
     */
    @NotNull(message = "opType cannot be empty")
    private Integer opType;
    /**
     * 会话标签，opType为5-Remove chat 可以为空， 可设置成userCodeFriend或targetId
     */
    private String userGroupLabel;

}